<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 怪物大师
  Date: 2024/4/28
  Time: 15:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table>
        <tr>
            <th>编号</th>
            <th>学号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>学院</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${students}" var="stu" varStatus="s">
            <tr>
                <td>${s.count}</td>
                <td>${stu.sid}</td>
                <td>${stu.stuname}</td>
                <td>${stu.sex}</td>
                <td>${stu.academy}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/AlterBeforeStudentServlet?sid=${stu.sid}&stuname=${stu.stuname}&sex=${stu.sex}&academy=${stu.academy}">
                        修改
                    </a>&nbsp;
                    <a href="${pageContext.request.contextPath}/DeleteStudentServlet?sid=${stu.sid}&stuname=${stu.stuname}&sex=${stu.sex}&academy=${stu.academy}">
                        删除
                    </a>
                </td>
            </tr>
        </c:forEach>
        <tr>
            <td><a href="${pageContext.request.contextPath}/addStudent.jsp">添加学生</a> </td>
            <td><a href="${pageContext.request.contextPath}/index.jsp">返回首页</a> </td>

        </tr>
    </table>


</body>
</html>
